package com.estacionamientos


class ImagenService {

    static transactional = true

    public Imagen saveObj(Imagen u){
    	if(u.save(flush: true)){
    		return u;
    	}
    }
    
    def listObj(){
       def g = [instanceList: Imagen.list(), instanceTotal: Imagen.count()]
       return g;
    }
    public Imagen getObj(Long id){
        def instance = Imagen.get(id)
        return instance
    }
    public void deleteObj(Imagen obj){
        obj.delete(flush: true)

    }
}
